<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>font-famlity的使用</title>
  <style>
    .kaiti {
      font-family: "微软雅黑";
    }

    .weiruanyahei {
      font-family: 'Times New Roman', Arial, Helvetica, sans-serif;
    }

    p {
      font-family: "宋体";
    }
  </style>
</head>
<body>
  <h4>字体的使用</h1>
  <p class="kaiti">哈哈哈哈</p>
  <p class="weiruanyahei">我的小猫暴脾气</p>
</body>

</html>